package com.syt.easyexcel;


import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;

import java.util.Map;

public class ExceList extends AnalysisEventListener<UserData> {

    // 一行一行的 读取 表格中的内容
    @Override
    public void invoke(UserData userData, AnalysisContext analysisContext) {

        System.out.println(userData);
    }


    @Override
    public void invokeHeadMap(Map<Integer, String> headMap, AnalysisContext context){
        System.out.println("表头信息："+headMap);
    }


    // 读取之后执行
    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {


    }
}
